/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uet.model;

import org.w3c.dom.Element;

/**
 *
 * @author thinhnk
 */
public class QuestionPost extends Post{
    public String title;
    
    public QuestionPost(String _title, int _id, Element post){
        super(_id, post);
        title = _title;
    }
    public String toString(){
        StringBuilder s = new StringBuilder();
        s.append("START: Question Post\n");
        s.append("Title = ").append(title).append("\n");
        s.append("ID = ").append(id);
        s.append(" Score = ").append(score);
        s.append(" User = ").append(user);
        s.append(" Thank = ").append(thanks);
        s.append(" NUM_OF_SENS = ").append(sentences.size()).append("\n");
        for(String sen: sentences){
            s.append(sen).append("\n");
        }
        s.append("END");
        return s.toString();
    }
}
